package com.framework.plm.sec.vo;

import java.io.Serializable;
import java.util.List;

public class UserAuthObject implements Serializable {

	private static final long serialVersionUID = 1L;
	
	/** 用户代码 **/
    private String userCode;

    /** 用户登陆ID **/
    private String loginId;

    /** 用户名 **/
    private String userName;

    /** 菜单权限码 **/
	private List<BasSecRes> menuRights;
	
	private String rightsTree;

	public UserAuthObject() {
		super();
	}

	/**
	 * 判断用户有没有权限
	 */
	public boolean hasRight(String s) {
		return menuRights != null && menuRights.contains(s);
	}

	public List<BasSecRes> getMenuRights() {
		if(menuRights == null){
			
		}
		return menuRights;
	}

	public void setMenuRights(List<BasSecRes> menuRights) {
		this.menuRights = menuRights;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getRightsTree() {
		return rightsTree;
	}

	public void setRightsTree(String rightsTree) {
		this.rightsTree = rightsTree;
	}
	
}
